/**
	* @author Nawanjana
*/

var idForReplace="";

function ajaxPHP(element,urlHTML) {
	idForReplace = element;
    xmlhttp = GetXmlHttpObject();
	url=urlHTML;
    if (xmlhttp == null) {
        alert("Your Browser does not support HTTP Request");
        return;
	}
	xmlhttp.onreadystatechange = stateChanged;
    xmlhttp.open("GET", url, false);
    xmlhttp.send(null);
}

function stateChanged() {
    if (xmlhttp.readyState == 4) {
        if (idForReplace.length > 0) {
			document.getElementById(idForReplace).innerHTML= xmlhttp.responseText;
		}
		else 
		alert("No Element Selected");
	}
}

function GetXmlHttpObject() {
    if (window.XMLHttpRequest) {
        // code for IE7+, Firefox, Chrome, Opera, Safari
        return new XMLHttpRequest();
	}
    if (window.ActiveXObject) {
        // code for IE6, IE5
        return new ActiveXObject("Microsoft.XMLHTTP");
	}
    return null;
}
function nextbutton(page){
	if(page  == 1){
		//window.location.href = "Deposit_slip1.html";
		ajaxPHP("Main_Form","Deposit_slip1.html");
	}
	if(page == 2){
	alert("page2");
		//window.location.href = "Deposit_slip2.html";
		ajaxPHP("Main_Form","Deposit_slip2.html");
	}
}
function testsubmit(){
	alert("submited");
}
function popuppayments(coursename){
	alert(coursename);
	switch (coursename){
		
		case "b":
		var divoption  = document.getElementById("1");
		divoption.style.visibility = 'hidden'; 
		
		}
}
	